<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="/static/css/index.css" />
	<link rel="stylesheet" type="text/css" href="/static/css/jquery-ui-1.9.2.custom.min.css" />
	<link rel="stylesheet" type="text/css" href="/static/css/messages.css" />
	<!-- <script type="text/javascript" src="/static/js/upload.js"></script> -->
	<title>Rezpozytorium dokumentów</title>
	<script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="/static/js/jquery-ui-1.9.2.custom.min.js"></script>
	<script>
		$(document).ready(function() {
			$('#menu').tabs();
			$('.message-flash').show('blind', 1000).hide('drop', { direction: 'down'}, 4000 );
		});
	</script> 
</head>
<body>
	<%@ include file="./jsp/header.jsp" %>
	<div id="box">
		<div id="title" class="ui-widget">Repozytorium dokumentów</div>
		<div id="menu">
			<ul>
				<li>
					<a href="#search" >Szukaj</a>
				</li>
				<li>
					<a href="#add" >Dodaj</a>
				</li>
			</ul>
			<div id="add">
				<div id="index">
					<form action="add-document" method="post">
						<input name="filepath" type="text"> 
						<input type="image" src="/static/img/arrow_right.png">
					</form>
				</div>
				<div id="upload">
					<form action="document-upload" method="post" enctype="multipart/form-data">
						<!--  <input id="fake_file" type="text"> -->
    					<input id="true_file" type="file" name="file" multiple>
						<input id="add" type="image" src="/static/img/plus.png">   
					</form>
				</div>
			</div>
			<div id="search">
				<form action="documents">
					<input name="q" type="text">
					<input name="mode" type="radio" value="native" checked>Natywne
					<input name="mode" type="radio" value="lucene">Lucene
					<input type="submit" value="szukaj">
				</form>
				<a href="/documents" >lista dokumentów</a>
			</div>
		</div>
		<%@ include file="./jsp/messages.jsp" %>
	</div>
</body>
</html>